home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000050_nickc%cs.st-and…-andrews.ac.uk_Thu Dec 8 20:24:08 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  3KB

  1. Received: from sun2.nsfnet-relay.ac.uk by cs.umb.edu with SMTP id AA21149
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Sun, 11 Dec 1994 22:45:30 -0500
  3. Via: uk.ac.st-andrews.dcs; Fri, 9 Dec 1994 14:43:29 +0000
  4. Received: from aberlour.cs.st-andrews.ac.uk by tamdhu.cs.st-andrews.ac.uk;
  5.           Thu, 8 Dec 94 20:23:15 GMT
  6. From: Nick Cropper <nickc@cs.st-andrews.ac.uk>
  7. Date: Thu, 8 Dec 94 20:24:08 GMT
  8. Message-Id: <6119.9412082024@aberlour.cs.st-andrews.ac.uk>
  9. To: tex-k@cs.umb.edu
  10. Subject: MakeTeXPK - fix to VARIABLE NAME
  11.  
  12. I've been looking through MakeTeXPK to try to understand it better,
  13. and I've noticed that the version I have (from the latest xdvik,
  14. dvipsk) has a minor bug shown below.
  15.  
  16. While I'm taking up your time, I have a wee question...
  17. I've been using Karl's special.map, source.map method for putting
  18. pk files in the 'correct' place instead of in fonts/tmp/
  19. [and I like it a lot, but you can understand why I wanted to check
  20. more closely what MakeTeXPK is up to :o) ].
  21. Has anyone modified their MakeTeXPK so that it puts the pk file
  22. in the _sibling_ pk directory to the mf directory in which it gets
  23. the principle mf files?  For example, if it was getting the mf files
  24. from
  25.     .../myfont/mf/
  26. then it would put the pk file in
  27.     .../myfont/pk/pk???/
  28. without consulting ~~.map files which might not have been incremented
  29. to include recent accessions.
  30.  
  31.  
  32. # grep for the font in $PSMAPFILE, if some ps-to-pk is claimed to be supported.
  33. # We have to figure out the name of the base font -- $NAME is probably
  34. # something like pplr, but it's rpplr or pplr0 or pplr8r that's in psfonts.map.
  35. pattern="^r?$NAME"'(0|8r)?([     ]|$)' 
  36. test -n "$ps_to_pk" && egrep "$pattern" $PSMAPFILE >psline
  37. if test -s psline; then
  38.   # This is a PostScript font.
  39.   MODE=$ps_to_pk
  40.   case $ps_to_pk in
  41.        ps2pk*) special_part=`cat psline | sed -e 's/^.*"//' -e 's/".*$//'`
  42.                # .167 SlantFont
  43.                slant=`echo $special_part \
  44.                       | awk '{ if ($2 == SlantFont) print "-S" $1 }'`
  45.                extend=`echo $special_part \
  46.                        | awk '{ if ($2 == ExtendFont) print "-E" $1 }'`
  47.                cmd="$ps_to_pk -v -X$DPI $slant $extend $NAME";;
  48.             *) cmd="$ps_to_pk $NAME $DPI";;
  49.   esac
  50.  
  51.   # Update DESTDIR for new mode, and check if we were spuriously called.
  52.   test -z "$6" && DESTDIR="$DESTROOT/$MODE"
  53.   if test -r $DESTDIR/$PKNAME; then # sigh, this is repeated below
  54.     echo "$0: $DESTDIR/$PKNAME already exists." >&2
  55.     echo $DESTDIR/$PKNAME
  56.     exit 0
  57.   fi
  58.  
  59.   DVIPSHEADERS="$DVIPSHEADERS:$PWD"
  60.   export DVIPSHEADERS
  61.   echo "$0: Running $cmd" >&2
  62.   $cmd >&2 || { echo "$0: $gsftopk failed." >&2; exit 1; }
  63.  
  64. The line above should be
  65.  
  66.   $cmd >&2 || { echo "$0: $ps_to_pk failed." >&2; exit 1; }
  67.                            ^^^^^^^^